package com.square.service.member.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.square.service.common.entity.member.po.User;
import org.apache.ibatis.annotations.Param;

/**
 * 用户持久层
 *
 * @author : 王苏
 * @since : 2021/4/20 14:27
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 通过账号获取用户对象
     *
     * @param username
     * @return
     */
    User getUserByUsername(@Param("username") String username);
}
